package com.danawa.watcher.util;

import com.danawa.watcherApi.database.domain.Type.Mall;
import com.danawa.watcherApi.database.domain.Type.Site;

public class WatcherEnumUtil {
	
	/**
	 * siteName 에 따른 Site return 
	 * @param siteName
	 * @return
	 */
	public static Site siteType (String siteName){
		switch(siteName) {
			case "0":
				return Site.DANAWA;
			case "1":
				return Site.NAVER;
			case "2":
				return Site.ENURI;
			default:
				return Site.DANAWA;
		}
	}

	/**
	 * siteType 에 따른 SiteName return 
	 * @param siteType
	 * @return
	 */
	public static String siteName (String siteType){
		switch(siteType) {
			case "DANAWA":
				return "다나와";
			case "NAVER":
				return "네이버";
			case "ENURI":
				return "에누리";
			default:
				return "디폴트(테스트)";
		}
	}
	
	/**
	 * shopName 에 따른 Mall return 
	 * @param shopName
	 * @return
	 */
	public static Mall mallType (String mallName){
		switch(mallName) {
			case "0":
				return Mall.ELEVENST;
			case "1":
				return Mall.GMARKET;
			case "2":
				return Mall.AUCTION;
			default:
				return Mall.ELEVENST;
		}
	}
	
	/**
	 * mallType 에 따른 mallName return 
	 * @param mallType
	 * @return
	 */
	public static String mallName (String mallType){
		switch(mallType) {
			case "ELEVENST":
				return "11번가";
			case "GMARKET":
				return "G마켓";
			case "AUCTION":
				return "AUCTION";
			default:
				return "디폴트(테스트)";
		}
	}
}
